package com.hutao.chargingpile.pitfall.service;

import com.hutao.chargingpile.pitfall.pojo.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 故障表 服务类
 * </p>
 *
 * @author HuTao
 * @since 2023-03-22
 */
public interface CpHitchService extends IService<CpHitch> {
    List<CpHidden> findAll(Map<String,Object> map);

    int count(Map<String,Object> map);

    List<String> findChargingStations();

    List<CpHandleCode> findCpHandleCode();

    List<String> findHandlePerson();

    CpHitch findHitchById(String id);

    int updateHitchById(Map<String,Object> map);

    int returnPerson(Map<String, Object> map);

    boolean isHandle(String id);

    boolean dealSave(CpHitchDeal hitchDeal);

    boolean isDeal(Long id);

    CpHitchDeal findDealByHitchId(Long id);

    boolean dealSaveNew(CpHitchDeal hitchDeal);

    CpHitch fetchDataById(Long id);

    CpHitchDeal fetchDataDealById(Long id);

    List<CpHitch> cpHitchExport();
}
